window.API = (function () {
    var that = this;
    that.post = function (controlAction, post, callback) {
        //add form hash
        $.post('?c=' + controlAction + '&ajax=1&FORM_HASH=' + FORM_HASH, post, function (result) {
            var data;
            try {
                eval('data=' + result);
            } catch (e) {
            }
            callback && callback(data);
        });
    };
    return that;
})();
